package com.woniuxy.mapper;

import com.woniuxy.entity.Appointment;
import com.woniuxy.entity.AppointmentExample;
import java.util.List;import java.util.Map;
import com.woniuxy.vo.AppointmentVO;import org.apache.ibatis.annotations.Param;

public interface AppointmentMapper {
    long countByExample(AppointmentExample example);

    int deleteByExample(AppointmentExample example);

    int deleteByPrimaryKey(Integer appointmentId);

    int insert(Appointment record);

    int insertSelective(Appointment record);

    List<Appointment> selectByExample(AppointmentExample example);

    Appointment selectByPrimaryKey(Integer appointmentId);

    int updateByExampleSelective(@Param("record") Appointment record, @Param("example") AppointmentExample example);

    int updateByExample(@Param("record") Appointment record, @Param("example") AppointmentExample example);

    int updateByPrimaryKeySelective(Appointment record);

    int updateByPrimaryKey(Appointment record);

    //根据预约状态查询营地订单信息
    List<AppointmentVO> selectOrderByStatus(Map<String, Object> map);
    //根据status和carId查询房车预约情况 判断是否空闲
    List<Appointment> selectByStatusAndCarId(Integer carId);
    //查询状态未完成的订单
    List<Appointment> selectAppointmentNotOver();
}